package com.usian.common.exception;

import com.usian.model.common.dtos.ResponseResult;

/**
 * 自定义异常
 * 解决不可预支异常
 */
public class CustomException extends RuntimeException{

    private ResponseResult responseResult;
//构造方法
    public CustomException(int code,String msg){
        this.responseResult=new ResponseResult(code,msg);
    }

    public ResponseResult getResponseResult() {
        return responseResult;
    }

    public void setResponseResult(ResponseResult responseResult) {
        this.responseResult = responseResult;
    }
}
